package com.lemontree.spring4.day02;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

@Aspect
public class TrackAop {

    @Pointcut("execution(* com.lemontree.spring4.day02.Performance.needArg(int))" + "&&args(num)")
    public void needArg(int num) {};

    @Before("needArg(num)")
    public void count(int num) {
        System.out.println("num -> do"+num);
    }
}
